﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Tomahawk.Runtime.Console.Commands
{
    public class ToggleCameraCommand : ConsoleCommand
    {
        public override string GetName()
        {
            return "togglecamera";
        }

        public override string GetHelp()
        {
            return "Usage: togglecamera camera.\nChanges the active camera";
        }

        public override string Execute(string[] parameters)
        {
            if (parameters.Count() > 1)
            {
                string camera = parameters[1];
                Engine.Instance.CameraManager.SetActiveCamera(camera);

                return "Camera changed to " + camera;
            }

            return "Invalid parameters";
        }
    }
}
